[[Category theory MOC]]
# Category semigroup
Let $R$ be a [[commutative ring]] and $\cat C$ be a [[Small category]].
The **category ring** $R\cat C$ is an [[R-semigroup]] constructed from the [[free module]] $R^{(\cat C)}$. #m/def/cat
This is a generalization of the [[Monoid ring]] in light of [[Monoids as categories]].
In the case $\Ob(\cat C)$ is finite, this construction gives an [[Ring extension|extension ring]] of $R$ and is called the **category ring** which we denote by $R[\cat C]$.
## Construction
We begin with the [[free module]] $R^{(\cat C)}$ taking the [[objects as identities]] convention,
and linearly extend the following product for $f,g \in \cat C$
$$
\begin{align*}
g \cdot f = \begin{cases}
0 & \opn{cod} f \neq \opn{dom} g \\
f \circ g & \opn{cod} f = \opn{dom} g.
\end{cases}
\end{align*}
$$
If $\Ob(\cat C)$ is finite, then this forms an [[R-monoid]] with an identity given by
$$
\begin{align*}
1 = \sum_{x \in \Ob(\cat C)} 1_{{x}}.
\end{align*}
$$
## Properties
- [[Module over a category ring]]
## Special case
- [[Path algebra]]
#
---
#state/develop | #lang/en | #SemBr